package com.huluobo.travelprevention2006a

import android.content.Intent
import android.os.Bundle
import com.alibaba.android.arouter.launcher.ARouter
import com.huluobo.appbase.config.ARouterConfig
import com.huluobo.appbase.ui.BaseActivity
import com.huluobo.module_city.ui.activity.CityDataActivity
import com.huluobo.travelprevention2006a.databinding.ActivityMainBinding

class MainActivity : BaseActivity<ActivityMainBinding>() {
    override fun getViewBinding(): ActivityMainBinding = ActivityMainBinding.inflate(layoutInflater)

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        initClick()
    }

    private fun initClick() {
        mViewBinding.llAgency.setOnClickListener {
            ARouter.getInstance().build(ARouterConfig.AGENCY_MESSAGE).navigation()
//            val intent = Intent(this@MainActivity, CityDataActivity::class.java)
//            startActivity(intent)
        }

        mViewBinding.llRiskLevel.setOnClickListener {
            ARouter.getInstance().build(ARouterConfig.RISK_LEVEL).navigation()
        }

        mViewBinding.llTravel.setOnClickListener {
            ARouter.getInstance().build(ARouterConfig.TRAVEL_POLICY).navigation()
        }
    }
}